package com.example.ruralservicedigitalplatform.service.impl;

import com.example.ruralservicedigitalplatform.domain.po.Category;
import com.example.ruralservicedigitalplatform.mapper.CategoryMapper;
import com.example.ruralservicedigitalplatform.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> list() {
        List<Category> list = categoryMapper.list();
        return list;
    }
}
